<include file='Index/header' />
<div class="row">
	<br>
	<form id="product_shopping_form" action='{:U("Admin/Product/updateProductShoppingActivity")}' method="post">
		<div class="col-sm-12">
			<div class="col-sm-2">
	        <label for="status" class="control-label">是否开启：</label>
	    </div>
	    <div class="col-sm-2">
	        <input id="status" type="checkbox" value="1" name="status" ></input>
	    </div>
		</div>

		<div class="col-sm-12">
			<br>
			<div class="col-sm-2" style="padding-top:5px">
	        <label for="content" class="control-label">活动内容描述：</label>
	    </div>
	    <div class="col-sm-4">
	        <input id="content" name="content" class="form-control" value="{$content}"></input>
	    </div>
		</div>
	</form>

	<div class="col-sm-12">
			<br><br>
			<div class="col-sm-2"></div>
			<div class="col-sm-2">
    		<button class="btn btn-primary" onclick="submit()">保存</button>
    	</div>
    	<div class="col-sm-3">
    		<button class="btn btn-primary">取消</button>
    	</div>
    	<br><br>
	  </div>
</div>
<include file='Index/footer' />
<script>
$(document).ready(function() {
	if('{$status}' == '' || '{$status}' == '0'){
		$('#status').attr('checked', 'false');
	}else{
		$('#status').attr('checked', 'true');
	}
});
function submit(){
	$('#product_shopping_form').ajaxSubmit({      
        success:function(data){
            location.reload();
        }
    });
}
</script>